﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace WeSSysUser.model
{
    public class LoginResult
    {
        public static int STATUS_VALID_CREDENTIAL_CODE = 0;
        public static string STATUS_VALID_CREDENTIAL_TEXT = "Ok";

        public static int STATUS_INVALID_CREDENTIAL_CODE = STATUS_VALID_CREDENTIAL_CODE + 1;
        public static string STATUS_INVALID_CREDENTIAL_TEXT = "Invalid email / password";

        public static int STATUS_INACTIVATED_USER_CODE = STATUS_INVALID_CREDENTIAL_CODE + 1;
        public static string STATUS_INACTIVATED_USER_TEXT = "Please check your email to activate your account or you can request <a href='reset-activated-code' class='link3'> reset activated code</a>";

        public static int STATUS_DISABLE_USER_ERROR_CODE = STATUS_INACTIVATED_USER_CODE + 1;
        public static string STATUS_DISABLE_USER_ERROR_TEXT = "This account is disabled";

        public static int STATUS_GENERAL_ERROR_CODE = STATUS_DISABLE_USER_ERROR_CODE + 1;
        public static string STATUS_GENERAL_ERROR_TEXT = "Error occurs, please log in again later";

        public SysUserResultStatus sysUserResultStatus { get; set; }

        //public static int get_STATUS_VALID_CREDENTIAL_CODE()
        //{
        //    return STATUS_VALID_CREDENTIAL_CODE;
        //}

        //public static string get_STATUS_VALID_CREDENTIAL_TEXT()
        //{
        //    return STATUS_VALID_CREDENTIAL_TEXT;
        //}

        //public static int get_STATUS_INVALID_CREDENTIAL_CODE()
        //{
        //    return STATUS_INVALID_CREDENTIAL_CODE;
        //}

        //public static string get_STATUS_INVALID_CREDENTIAL_TEXT()
        //{
        //    return STATUS_INVALID_CREDENTIAL_TEXT;
        //}

        //public static int get_STATUS_INACTIVATED_USER_CODE()
        //{
        //    return STATUS_INACTIVATED_USER_CODE;
        //}

        //public static string get_STATUS_INACTIVATED_USER_TEXT()
        //{
        //    return STATUS_INACTIVATED_USER_TEXT;
        //}

        //public static int get_STATUS_DISABLE_USER_ERROR_CODE()
        //{
        //    return STATUS_DISABLE_USER_ERROR_CODE;
        //}

        //public static string get_STATUS_DISABLE_USER_ERROR_TEXT()
        //{
        //    return STATUS_DISABLE_USER_ERROR_TEXT;
        //}

        //public static int get_STATUS_GENERAL_ERROR_CODE()
        //{
        //    return STATUS_GENERAL_ERROR_CODE;
        //}

        //public static string get_STATUS_GENERAL_ERROR_TEXT()
        //{
        //    return STATUS_GENERAL_ERROR_TEXT;
        //}
        
    }
}